package com.yonyou.brigade.third_parties.didi.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 滴滴用户实体
 * </p>
 *
 * @author jiangzhf@yonyou.com
 * @since 2019-01-25
 */
@TableName("didi_user")
public class DiDiUser extends Model<DiDiUser> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户userId
     */
    @TableField("user_id")
    private String userId;

    /**
     * 滴滴方的用户ID
     */
    @TableField("dd_member_id")
    private String ddMemberId;
    /**
     * 组织信息
     */
    private String org;
    /**
     * 租户ID
     */
    private String tenant;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 真实姓名
     */
    private String realname;
    /**
     * 员工编号
     */
    @TableField("employee_number")
    private String employeeNumber;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 系统角色 0-车辆预定人员，1-普通管理员，2-超级管理员
     */
    @TableField("system_role")
    private Integer systemRole;
    /**
     * 角色
     */
    @TableField("role_ids")
    private String roleIds;
    /**
     * 是否企业付款
     */
    @TableField("use_company_money")
    private Integer useCompanyMoney;
    /**
     * 每月配额
     */
    @TableField("total_quota")
    private String totalQuota;
    /**
     * 叫车时备注信息是否必填(0-选填，1-必填)
     */
    @TableField("is_remark")
    private Integer isRemark;
    /**
     * 所在滴滴公司的部门ID
     */
    @TableField("budget_center_id")
    private Long budgetCenterId;
    /**
     * 用车制度ID
     */
    @TableField("regulation_id")
    private String regulationId;
    /**
     * 所在项目ID
     */
    @TableField("project_ids")
    private String projectIds;
    /**
     * 是否可用 0不可用 1可用
     */
    private Integer valid;
    /**
     * 该条记录创建时间
     */
    @TableField("in_create_time")
    private Date inCreateTime;
    private Date ts;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getDdMemberId() {
        return ddMemberId;
    }

    public void setDdMemberId(String ddMemberId) {
        this.ddMemberId = ddMemberId;
    }

    public String getOrg() {
        return org;
    }

    public void setOrg(String org) {
        this.org = org;
    }

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getEmployeeNumber() {
        return employeeNumber;
    }

    public void setEmployeeNumber(String employeeNumber) {
        this.employeeNumber = employeeNumber;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getSystemRole() {
        return systemRole;
    }

    public void setSystemRole(Integer systemRole) {
        this.systemRole = systemRole;
    }

    public String getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(String roleIds) {
        this.roleIds = roleIds;
    }

    public Integer getUseCompanyMoney() {
        return useCompanyMoney;
    }

    public void setUseCompanyMoney(Integer useCompanyMoney) {
        this.useCompanyMoney = useCompanyMoney;
    }

    public String getTotalQuota() {
        return totalQuota;
    }

    public void setTotalQuota(String totalQuota) {
        this.totalQuota = totalQuota;
    }

    public Integer getIsRemark() {
        return isRemark;
    }

    public void setIsRemark(Integer isRemark) {
        this.isRemark = isRemark;
    }

    public Long getBudgetCenterId() {
        return budgetCenterId;
    }

    public void setBudgetCenterId(Long budgetCenterId) {
        this.budgetCenterId = budgetCenterId;
    }

    public String getRegulationId() {
        return regulationId;
    }

    public void setRegulationId(String regulationId) {
        this.regulationId = regulationId;
    }

    public String getProjectIds() {
        return projectIds;
    }

    public void setProjectIds(String projectIds) {
        this.projectIds = projectIds;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public Date getInCreateTime() {
        return inCreateTime;
    }

    public void setInCreateTime(Date inCreateTime) {
        this.inCreateTime = inCreateTime;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String DD_MEMBER_ID = "dd_member_id";

    public static final String ORG = "org";

    public static final String TENANT = "tenant";

    public static final String PHONE = "phone";

    public static final String REALNAME = "realname";

    public static final String EMPLOYEE_NUMBER = "employee_number";

    public static final String EMAIL = "email";

    public static final String SYSTEM_ROLE = "system_role";

    public static final String ROLE_IDS = "role_ids";

    public static final String USE_COMPANY_MONEY = "use_company_money";

    public static final String TOTAL_QUOTA = "total_quota";

    public static final String IS_REMARK = "is_remark";

    public static final String BUDGET_CENTER_ID = "budget_center_id";

    public static final String REGULATION_ID = "regulation_id";

    public static final String PROJECT_IDS = "project_ids";

    public static final String VALID = "valid";

    public static final String IN_CREATE_TIME = "in_create_time";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DiDiUser{" +
                "id=" + id +
                ", userId=" + userId +
                ",ddMemberId=" + ddMemberId +
                ", org=" + org +
                ", tenant=" + tenant +
                ", phone=" + phone +
                ", realname=" + realname +
                ", employeeNumber=" + employeeNumber +
                ", email=" + email +
                ", systemRole=" + systemRole +
                ", roleIds=" + roleIds +
                ", useCompanyMoney=" + useCompanyMoney +
                ", totalQuota=" + totalQuota +
                ", isRemark=" + isRemark +
                ", budgetCenterId=" + budgetCenterId +
                ", regulationId=" + regulationId +
                ", projectIds=" + projectIds +
                ", valid=" + valid +
                ", inCreateTime=" + inCreateTime +
                ", ts=" + ts +
                "}";
    }
}
